How to Format Dates with Vanilla JavaScript
Therearemanywaystoformatadateasastring.TheJavaScriptspecificationonlyspecifiesoneformattobeuniversallysupported:thedatetimestring ...Date.now()·Date()constructor·toLocaleDateString()·Date.prototype.getD,YoucanuseDate.now()togetthecurrenttimeinmil...。參考影片的文章的如下: